#pragma once

#include <QObject>
#include <QGraphicsEllipseItem>

class MyEllipseItem : public QObject, public QGraphicsEllipseItem
{
	Q_OBJECT
public:
	MyEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = nullptr);
	~MyEllipseItem();

	void mousePressEvent(QGraphicsSceneMouseEvent* event);
	void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
	void mouseReleseEvent(QGraphicsSceneMouseEvent* event);

	QPointF getScenePos();

signals:
	void sigMoved();
};
